home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
sort2.zip
/
ERREXIT.INC
< prev
next >
Wrap
Text File
|
1993-01-04
|
340b
|
12 lines
procedure errexit(msg: string);
{ write a message to the console and exit the program with an error code }
{ Copyright 1988,1989, by J. W. Rider }
var fe:text; begin
{ The global variable "pname" must be set with the name of the program. }
assign(fe,'CON'); rewrite(fe); writeln(fe,pname,': ',msg); close(fe);
halt(1); end;